<div id="list_content">
<div class="store_list_title"><div class="store_list_title_wrapper"><img src="/images/form_title.png"/> 商家列表</div></div>
<div class="page_bar"><%= page_bar({:action => "list"}, @total_store, @page, 10) %></div>
<%
	odd_or_even = 1;
	for store in @stores 
%>
<% 
	merchant = Merchant.find(store.merchant_id) 
	odd_or_even = 1 - odd_or_even
%>
    <div class="store_list_<%= odd_or_even %>">
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="140">
						<div class="header_pic_wrapper">
						<div class="header_pic_area"><img src="<%= store.logo %>" alt="商店logo" height="96px" width="96px"/></div>
						</div>
					</td>
					<td>
						<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
						<tr>
							<td height="100">
								<div class="base_info">
									<h1><%= link_to "商店名称: #{store.name}", {:action => 'show_store', :store_id => store} %></h1>
									<h2>商家名称: <%= merchant.name %></h2>
									<h2>营业时间: <%= store.work_time %></h2>
									<h2>商铺地址: <%= store.address %></h2>
								</div>
							</td>
						</tr>
						<tr>
							<td height="30">
								<div class="connect_bar"><img src="../images/connect_email.png" alt="电子邮件"/></div>
								<div class="connect_bar"><img src="../images/connect_qq.png" alt="腾讯QQ"/></div>
							</td>
						</tr>
						</table>
					</td>
				</tr>
      </table>
    </div>
<% end %>
<div class="page_bar"><%= page_bar({:action => "list"}, @total_store, @page, 10) %></div>
</div>
